This is a surface plot to demonstrate the features in the Plotly package.
Plotly
library(plotly) library(png)
This is a dataset, from the PNG image smiley.png
smiley.png
image <- readPNG("smiley.png")
plot_ly(z = ~image, type = "surface")